<!--我的房产列表-->
<template>
    <div id="properties-tab" class="tab-pane show active">
        <div class="row">
            <div class="property-item col-md-6 col-12 mb-40" v-for="one in list" :key="one.id">
                <fc-property-inner :data="one"/>
            </div>
        </div>
    </div>
</template>

<script>
    import FcPropertyInner from '@/components/property/PropertyInner.vue'
    import {createNamespacedHelpers} from 'vuex'
    const {mapMutations } = createNamespacedHelpers('user');
    export default {
        components: {
            FcPropertyInner
        },
        props: {
            list: {
                type: Array,
                default() {
                    return [
                        {
                            id: 1,
                            pictureUrl: '/images/property/property-1.jpg',
                            square: 550,
                            roomNumber: 3,
                            bathroomNumber: 3,
                            garageNumber: 3,
                            title: '江南宅院',
                            price: 550,
                            leaseType: 1,
                            address: '锦江区东大街下东大街568号',
                            rentType: 1,
                            hot: 0,
                            special: 0,
                        },
                        {
                            id: 2,
                            pictureUrl: '/images/property/property-2.jpg',
                            square: 550,
                            roomNumber: 3,
                            bathroomNumber: 3,
                            garageNumber: 3,
                            title: '木马山别墅',
                            price: 2550,
                            leaseType: 1,
                            address: '城北大道450附22号',
                            rentType: 2,
                            hot: 1,
                            special: 0,
                        },
                        {
                            id: 3,
                            pictureUrl: '/images/property/property-3.jpg',
                            square: 550,
                            roomNumber: 3,
                            bathroomNumber: 3,
                            garageNumber: 3,
                            title: '皇家一号公寓',
                            price: 550,
                            leaseType: 1,
                            address: '锦江区福字街215号',
                            rentType: 1,
                            hot: 0,
                            special: 1,
                        },
                        {
                            id: 4,
                            pictureUrl: '/images/property/property-4.jpg',
                            square: 550,
                            roomNumber: 3,
                            bathroomNumber: 3,
                            garageNumber: 3,
                            title: '龙城一号别墅',
                            price: 550,
                            leaseType: 1,
                            address: '龙泉驿区南山大道333号附12号',
                            rentType: 1,
                            hot: 0,
                            special: 0,
                        },
                        {
                            id: 5,
                            pictureUrl: '/images/property/property-5.jpg',
                            square: 550,
                            roomNumber: 3,
                            bathroomNumber: 3,
                            garageNumber: 3,
                            title: '春天花园别墅',
                            price: 550,
                            leaseType: 1,
                            address: '金牛区琴台西路668号',
                            rentType: 2,
                            hot: 0,
                            special: 0,
                        },
                        {
                            id: 6,
                            pictureUrl: '/images/property/property-6.jpg',
                            square: 550,
                            roomNumber: 3,
                            bathroomNumber: 3,
                            garageNumber: 3,
                            title: '万科西山别墅',
                            price: 550,
                            leaseType: 1,
                            address: '高新区蜀都大道12号',
                            rentType: 1,
                            hot: 0,
                            special: 1,
                        }
                    ];
                }
            }
        },
        methods:{
            ...mapMutations(['changeUserCenterActiveIdx'])
        },
        mounted() {
            //激活我的房产
            this.changeUserCenterActiveIdx(2);
        }
    }
</script>

<style scoped>

</style>
